﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E43 RID: 3651
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueAdventureRoomTargetCoin : IMessage<RogueAdventureRoomTargetCoin>, IMessage, IEquatable<RogueAdventureRoomTargetCoin>, IDeepCloneable<RogueAdventureRoomTargetCoin>, IBufferMessage
	{
		// Token: 0x17002E79 RID: 11897
		// (get) Token: 0x0600A40D RID: 41997 RVA: 0x001BAB78 File Offset: 0x001B8D78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueAdventureRoomTargetCoin> Parser
		{
			get
			{
				return RogueAdventureRoomTargetCoin._parser;
			}
		}

		// Token: 0x17002E7A RID: 11898
		// (get) Token: 0x0600A40E RID: 41998 RVA: 0x001BAB7F File Offset: 0x001B8D7F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueAdventureRoomTargetCoinReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002E7B RID: 11899
		// (get) Token: 0x0600A40F RID: 41999 RVA: 0x001BAB91 File Offset: 0x001B8D91
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueAdventureRoomTargetCoin.Descriptor;
			}
		}

		// Token: 0x0600A410 RID: 42000 RVA: 0x001BAB98 File Offset: 0x001B8D98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueAdventureRoomTargetCoin()
		{
		}

		// Token: 0x0600A411 RID: 42001 RVA: 0x001BABA0 File Offset: 0x001B8DA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueAdventureRoomTargetCoin(RogueAdventureRoomTargetCoin other) : this()
		{
			this.count_ = other.count_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A412 RID: 42002 RVA: 0x001BABC5 File Offset: 0x001B8DC5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueAdventureRoomTargetCoin Clone()
		{
			return new RogueAdventureRoomTargetCoin(this);
		}

		// Token: 0x17002E7C RID: 11900
		// (get) Token: 0x0600A413 RID: 42003 RVA: 0x001BABCD File Offset: 0x001B8DCD
		// (set) Token: 0x0600A414 RID: 42004 RVA: 0x001BABD5 File Offset: 0x001B8DD5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int Count
		{
			get
			{
				return this.count_;
			}
			set
			{
				this.count_ = value;
			}
		}

		// Token: 0x0600A415 RID: 42005 RVA: 0x001BABDE File Offset: 0x001B8DDE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueAdventureRoomTargetCoin);
		}

		// Token: 0x0600A416 RID: 42006 RVA: 0x001BABEC File Offset: 0x001B8DEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueAdventureRoomTargetCoin other)
		{
			return other != null && (other == this || (this.Count == other.Count && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A417 RID: 42007 RVA: 0x001BAC1C File Offset: 0x001B8E1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Count != 0)
			{
				num ^= this.Count.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A418 RID: 42008 RVA: 0x001BAC5B File Offset: 0x001B8E5B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A419 RID: 42009 RVA: 0x001BAC63 File Offset: 0x001B8E63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A41A RID: 42010 RVA: 0x001BAC6C File Offset: 0x001B8E6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Count != 0)
			{
				output.WriteRawTag(8);
				output.WriteInt32(this.Count);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A41B RID: 42011 RVA: 0x001BACA0 File Offset: 0x001B8EA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Count != 0)
			{
				num += 1 + CodedOutputStream.ComputeInt32Size(this.Count);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A41C RID: 42012 RVA: 0x001BACDE File Offset: 0x001B8EDE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueAdventureRoomTargetCoin other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Count != 0)
			{
				this.Count = other.Count;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A41D RID: 42013 RVA: 0x001BAD0F File Offset: 0x001B8F0F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A41E RID: 42014 RVA: 0x001BAD18 File Offset: 0x001B8F18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Count = input.ReadInt32();
				}
			}
		}

		// Token: 0x040042DE RID: 17118
		private static readonly MessageParser<RogueAdventureRoomTargetCoin> _parser = new MessageParser<RogueAdventureRoomTargetCoin>(() => new RogueAdventureRoomTargetCoin());

		// Token: 0x040042DF RID: 17119
		private UnknownFieldSet _unknownFields;

		// Token: 0x040042E0 RID: 17120
		public const int CountFieldNumber = 1;

		// Token: 0x040042E1 RID: 17121
		private int count_;
	}
}
